package testplan.entities;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class TestExecution {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long key;
	// foreign key to TestCase
	@Persistent
	private Long testCase;
	// foreign key to TestPlan
	@Persistent
	private Long testPlan;
	@Persistent
	private String title;
	@Persistent
	private String description;
	@Persistent
	private String steps;
	@Persistent
	private String expectedResults;
	@Persistent
	private String actualResults;
	@Persistent
	private int status;
	// foreign key to User
	@Persistent
	private Long createdBy;
	// foreign key to User
	@Persistent
	private Long updatedBy;
	@Persistent
	private Date createdAt;
	@Persistent
	private Date updatedAt;
	
	public TestExecution(Long testCase, Long testPlan, String title,
			String description, String steps, String expectedResults,
			String actualResults, int status, Long createdBy, Long updatedBy,
			Date createdAt, Date updatedAt) {
		super();
		this.testCase = testCase;
		this.testPlan = testPlan;
		this.title = title;
		this.description = description;
		this.steps = steps;
		this.expectedResults = expectedResults;
		this.actualResults = actualResults;
		this.status = status;
		this.createdBy = createdBy;
		this.updatedBy = updatedBy;
		this.createdAt = createdAt;
		this.updatedAt = updatedAt;
	}
	
	public TestExecution(Long testCase, Long testPlan, String title,
			String description, String steps, String expectedResults,
			String actualResults, int status, Long createdBy, Date createdAt) {
		super();
		this.testCase = testCase;
		this.testPlan = testPlan;
		this.title = title;
		this.description = description;
		this.steps = steps;
		this.expectedResults = expectedResults;
		this.actualResults = actualResults;
		this.status = status;
		this.createdBy = createdBy;
		this.createdAt = createdAt;
	}

	public Long getTestCase() {
		return testCase;
	}

	public void setTestCase(Long testCase) {
		this.testCase = testCase;
	}

	public Long getTestPlan() {
		return testPlan;
	}

	public void setTestPlan(Long testPlan) {
		this.testPlan = testPlan;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getSteps() {
		return steps;
	}

	public void setSteps(String steps) {
		this.steps = steps;
	}

	public String getExpectedResults() {
		return expectedResults;
	}

	public void setExpectedResults(String expectedResults) {
		this.expectedResults = expectedResults;
	}

	public String getActualResults() {
		return actualResults;
	}

	public void setActualResults(String actualResults) {
		this.actualResults = actualResults;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Long getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(Long createdBy) {
		this.createdBy = createdBy;
	}

	public Long getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(Long updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
	}

	public Long getKey() {
		return key;
	}
	
	
	
}
